<table width="100%">
  <tr>
    <td colspan="3" class="regulartext">
      &nbsp;
    </td>
  </tr>
  <tr>
    <td width="150" height="60" rowspan="2">
      <div id="image_main_<%=ad.id%>">
        <%= ad_link(ad,ad_image_tag(ad,"small")) %>
      </div>
    </td>
    <td width="250">
      <%= ad_link(ad) %>
      <% if ad.pictures.count <= 1 %>
        <font style="font-size: 5pt"><br />&nbsp;<br /></font>
        <font class="regulartext">Finns i följande kategorier:</font><br/>
        <% 0.upto(2) do |i| %>
          <%= category_path(ad.categories[i]) if ad.categories[i] %><br/>
        <% end %>
      <% end %>
    </td>
    <td width="270" class="regulartext" rowspan="2" style="text-align: left;">
      <%= render :partial => "ad/ad_info", :locals => { :ad => ad } %>
      <br/>
      <%= ad_link(ad,"Till annonsen") %><br/>
    </td>
    <tr>
      <td>
        <% ad.pictures.delete_at(0) %>

        <%= render_table(:entities => ad.pictures,
          :width_area => 300,
          :width_entity => 90,
          :partial => "image/image",
          :rows => 1,
          :locals => { :size => "mini",
            :url => url_for(:controller => :ad, :action => :view, :id => ad),
            :onclick => "go_to_url_spinner('#{url_for(:controller => :ad, :action => :view, :id => ad)}'); return false;" }) %>
      </td>
    </tr>
  </tr>
</table>